package cn.bone.demo.mongo.bean2;

import org.bson.types.ObjectId;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Id;

import java.util.Date;

/**
 * Created by MD-01 on 2016/9/27.
 * 任务时间模版
 */
@Entity("taskTimeTemplate")
public class TaskTimeTemplate {

    //主键
    @Id
    private ObjectId id;
    //创建人id
    private String createMemberId;
    //创建时间
    private Date createTime;
    //任务类型(0:单次执行时间不超过一天的任务,1:单次执行时间超过一天的任务)
    private Integer type;
    //任务类型为0时的执行频率
    private TaskFrequency frequency;
    //任务类型为1时的时间天数
    private Integer cycleDay;
    //是否删除
    private Boolean isDel;

    public ObjectId getId() {
        return id;
    }

    public void setId(ObjectId id) {
        this.id = id;
    }

    public String getCreateMemberId() {
        return createMemberId;
    }

    public void setCreateMemberId(String createMemberId) {
        this.createMemberId = createMemberId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public TaskFrequency getFrequency() {
        return frequency;
    }

    public void setFrequency(TaskFrequency frequency) {
        this.frequency = frequency;
    }

    public Integer getCycleDay() {
        return cycleDay;
    }

    public void setCycleDay(Integer cycleDay) {
        this.cycleDay = cycleDay;
    }

    public Boolean getIsDel() {
        return isDel;
    }

    public void setIsDel(Boolean isDel) {
        this.isDel = isDel;
    }
}
